﻿namespace NTLib.Core.Component
{
    using System;

    /// <summary>
    /// Define that the class decorate implement correctly the interface
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
    public class AutoLoadClassAttribute : Attribute
    {
        #region Ctor

        /// <summary>
        /// Initializes a new instance of the <see cref="AutoLoadClassAttribute"/> class.
        /// </summary>
        /// <param name="type">The type.</param>
        public AutoLoadClassAttribute(Type type)
        {
            this.TypeAutoLoad = type;
        }

        #endregion

        #region Properties

        /// <summary>
        /// Gets the type automatic load.
        /// </summary>
        /// <value>
        /// The type automatic load.
        /// </value>
        public Type TypeAutoLoad { get; }

        #endregion
    }
}
